var express = require('express');
var router = express.Router();

//引入功能 将每个功能引入
const { salesmanLogin, getAllSalesmans, addOneSalesman, getOneSalesman, updateOneSalesman, deleteOneSalesman, updatePasswordSalesman } = require('../controllers/salesmans')


router.post('/salesmanLogin', salesmanLogin);
router.get('/getAllSalesmans', getAllSalesmans);
router.post('/addOneSalesman', addOneSalesman);
router.post('/getOneSalesman', getOneSalesman);
router.post('/updateOneSalesman', updateOneSalesman);
router.post('/deleteOneSalesman', deleteOneSalesman);
router.post('/updatePasswordSalesman', updatePasswordSalesman)

//例子 登录 router.post('/login', login);

module.exports = router;